1
Read the Student-Support Problem
DSAI2202 Lab 3: Selecting Data
00:00

Scenario

The UniLearn support team has student-progress records but can contact only five students first. The query must combine eligibility, academic risk, the requested output columns, and a precise priority order.

The Practical Question

Which five eligible, at-risk students should the team contact first?

Separate who is eligible, who is at risk, and how priority is decided before thinking about SQL. Use student_progress as the source table.

QUERY REQUIREMENTSUp to 5 rows

Use this checklist to complete the query diagram and later verify the SQL.

ELIGIBLE
student_status = 'active'ANDsupport_status = 'not_contacted'
AT RISK
attendance_percent < 75ORaverage_mark < 50ORmissed_assignments >= 2
SHOW
student_idstudent_nameprogrammeattendance_percentaverage_markmissed_assignments
PRIORITY
  1. More missed assignments first
  2. Then lower average marks
  3. Then lower student IDs